<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fdk-aac: original/libSBRenc/src/ps_encode.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fdk-aac
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ed137715e08969a186ec660e8ae6e2fb.html">original</a></li><li class="navelem"><a class="el" href="dir_ed04b364c633b7d989cbbfdbe7d82d9c.html">libSBRenc</a></li><li class="navelem"><a class="el" href="dir_503efe22260b46e9073f09b8bee50978.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ps_encode.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>PS parameter extraction, encoding functions.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;ps_main.h&quot;</code><br />
<code>#include &quot;<a class="el" href="ps__encode_8h_source.html">ps_encode.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="qmf_8h_source.html">qmf.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="sbr__misc_8h_source.html">sbr_misc.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="sbrenc__ram_8h_source.html">sbrenc_ram.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="generic_stds_8h_source.html">genericStds.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_s___p_w_r___d_a_t_a.html">PS_PWR_DATA</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a2181a7d34a51b902c1517795d4c7f85f"><td class="memItemLeft" align="right" valign="top"><a id="a2181a7d34a51b902c1517795d4c7f85f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>LOG10_2_10</b>&#160;&#160;&#160;3.01029995664f /* 10.0f*log10(2.f) */</td></tr>
<tr class="separator:a2181a7d34a51b902c1517795d4c7f85f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25ffb5b0be1ccc0a9b976655e48834cf"><td class="memItemLeft" align="right" valign="top"><a id="a25ffb5b0be1ccc0a9b976655e48834cf"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>THRESH_SCALE</b>&#160;&#160;&#160;7</td></tr>
<tr class="separator:a25ffb5b0be1ccc0a9b976655e48834cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a77784bf39954a84cc42dc2f8f13d908e"><td class="memItemLeft" align="right" valign="top"><a id="a77784bf39954a84cc42dc2f8f13d908e"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>__PS_CONSTANTS</b> { <b>MAX_TIME_DIFF_FRAMES</b> = 20
, <b>MAX_PS_NOHEADER_CNT</b> = 10
, <b>MAX_NOENV_CNT</b> = 10
, <b>DO_NOT_USE_THIS_MODE</b> = 0x7FFFFF
 }</td></tr>
<tr class="separator:a77784bf39954a84cc42dc2f8f13d908e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4af0e4f1396ba9c4b837c0d42f505cfe"><td class="memItemLeft" align="right" valign="top"><a id="a4af0e4f1396ba9c4b837c0d42f505cfe"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>FDKsbrEnc_addFIXP_DBL</b> (const FIXP_DBL *X, const FIXP_DBL *Y, FIXP_DBL *Z, <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> n)</td></tr>
<tr class="separator:a4af0e4f1396ba9c4b837c0d42f505cfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd33fa13e720e5fbb0d288bdc327a7cc"><td class="memItemLeft" align="right" valign="top"><a id="afd33fa13e720e5fbb0d288bdc327a7cc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>FDKsbrEnc_initPsBandNrgScale</b> (<a class="el" href="struct_t___p_s___e_n_c_o_d_e.html">HANDLE_PS_ENCODE</a> hPsEncode)</td></tr>
<tr class="separator:afd33fa13e720e5fbb0d288bdc327a7cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13ff8c6c998f10e208fcfc0529eee1bc"><td class="memItemLeft" align="right" valign="top"><a id="a13ff8c6c998f10e208fcfc0529eee1bc"></a>
FDK_PSENC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><b>FDKsbrEnc_CreatePSEncode</b> (<a class="el" href="struct_t___p_s___e_n_c_o_d_e.html">HANDLE_PS_ENCODE</a> *phPsEncode)</td></tr>
<tr class="separator:a13ff8c6c998f10e208fcfc0529eee1bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd354f37a87f07671cabaab286aa1182"><td class="memItemLeft" align="right" valign="top"><a id="acd354f37a87f07671cabaab286aa1182"></a>
FDK_PSENC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><b>FDKsbrEnc_InitPSEncode</b> (<a class="el" href="struct_t___p_s___e_n_c_o_d_e.html">HANDLE_PS_ENCODE</a> hPsEncode, const PS_BANDS psEncMode, const FIXP_DBL iidQuantErrorThreshold)</td></tr>
<tr class="separator:acd354f37a87f07671cabaab286aa1182"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf559b2bc17ea7065f898447b05d03fd"><td class="memItemLeft" align="right" valign="top"><a id="aaf559b2bc17ea7065f898447b05d03fd"></a>
FDK_PSENC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><b>FDKsbrEnc_DestroyPSEncode</b> (<a class="el" href="struct_t___p_s___e_n_c_o_d_e.html">HANDLE_PS_ENCODE</a> *phPsEncode)</td></tr>
<tr class="separator:aaf559b2bc17ea7065f898447b05d03fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adefb106978dda9f0b83e114986814236"><td class="memItemLeft" align="right" valign="top"><a id="adefb106978dda9f0b83e114986814236"></a>
FDK_PSENC_ERROR&#160;</td><td class="memItemRight" valign="bottom"><b>FDKsbrEnc_PSEncode</b> (<a class="el" href="struct_t___p_s___e_n_c_o_d_e.html">HANDLE_PS_ENCODE</a> hPsEncode, <a class="el" href="struct_t___p_s___o_u_t.html">HANDLE_PS_OUT</a> hPsOut, <a class="el" href="machine__type_8h.html#aed5a2dbe32af3a91203f0f5e8697e873">UCHAR</a> *dynBandScale, <a class="el" href="machine__type_8h.html#afff0ab3629a68bc1bb3b2a2f4296173f">UINT</a> maxEnvelopes, FIXP_DBL *hybridData[HYBRID_FRAMESIZE][MAX_PS_CHANNELS][2], const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> frameSize, const <a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> sendHeader)</td></tr>
<tr class="separator:adefb106978dda9f0b83e114986814236"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>PS parameter extraction, encoding functions. </p>
<dl class="section rcs"><dt>Revision</dt><dd>96441 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
